import axios from "../../axios.js";

export default{
  //查询所有,带分页
  GETARCHIVESLIST(data)
  {
    return axios({
      url:'/customerArchives/archivesList',
      method:'post',
      data
    })
  },

   //查询所有客户
   GETCUSTOMER(data,binding)
   {
     return axios({
       url:'/customerArchives/selectDepartmentCustomer',
       method:'post',
       data,
       headers:{
         "binding": binding
       }
     })
   },

  //单个新增
  ADDARCHIVES(data,binding){
    return axios({
      url:'/customerArchives/insert',
      method:'post',
      data,
      headers:{
        "binding": binding
      }
    })
  },

  //单个删除：带文科
  DELETEARCHIVES(data,binding){
    return axios({
      url:'/customerArchives/archivesDestroy',
      method:'get',
      params:data
    })
  },

  //单个编辑
  EDITARCHIVES(data,binding){
    return axios({
      url:'/customerArchives/updateArchivesStatus',
      method:'post',
      data
    })
  },

   //协议编号
  //  GETCONTRCT(data){
  //   return axios({
  //     url:'/customerArchives/selectCustomerNumber',
  //     method:'post',
  //     data
  //   })
  //  },

  
    //协议编号
   GETCONTRCT(data){
    return axios({
      url:'/customerArchives/selectDepartmentCustomerNew',
      method:'post',
      data
    })
  },
  //  领取
  getDocument_Api(data){
    return axios({
      url:'/customerArchives/archivesReceive',
      method:'get',
      params:data
    })
  },
};
